package com.spark.jta;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping
@RestController
public class Controller {
    @Autowired
    private Service service;

    @GetMapping
    public String index(){
        return service.saveData();
    }
}
